package com.qf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * @author Wy
 * @version V1.0
 * @Project MavenDemo
 * @Package com.qf
 * @Description:
 * @Date 2022/7/6 11:35
 */
@SpringBootApplication
@EnableEurekaClient
//开启Hystrix
@EnableCircuitBreaker
//开启断路器监控
@EnableHystrixDashboard
//扫描Hystrix的servlet所在包
@ServletComponentScan("com.qf.servlet")
public class SearchApplication {

    public static void main(String[] args) {
        SpringApplication.run(SearchApplication.class, args);
    }
}
